﻿using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;
using SOEI.Solution.DomainEntities.ContractManagement;
using SOEI.Solution.EntityFrameworkCore.EntityMapper;

namespace SOEI.Solution.EntityMapper
{
    public class ContractBothMapper : AbpBaseMapper, IEntityTypeConfiguration<ContractBoth>
    {
        public void Configure(EntityTypeBuilder<ContractBoth> builder)
        {
            builder.SetAttrbuteEntity();

            builder
                .HasIndex(sf => sf.HTDJH)
                .HasName("CLFWQ_HTMMSFXX_HTDJHINDEX");

        }

    }
}
